package edu.xust.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author 
 */
@JsonIgnoreProperties(value = {"handler","serialVersionUID"})
public class PsManager implements Serializable {
    private String pid;

    private String pmUn;

    private String pmPwd;

    private String sex;

    private String telnum;

    private String email;

    private Date pmCreatetime;

    private Date pmLastlogin;

    private String pmArea;

    private String pmIcon;

    private String pmStatus;

    private List<PsOrder> psOrders;

    private static final long serialVersionUID = 1L;

    public List<PsOrder> getPsOrders() {
        return psOrders;
    }

    public void setPsOrders(List<PsOrder> psOrders) {
        this.psOrders = psOrders;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPmUn() {
        return pmUn;
    }

    public void setPmUn(String pmUn) {
        this.pmUn = pmUn;
    }

    public String getPmPwd() {
        return pmPwd;
    }

    public void setPmPwd(String pmPwd) {
        this.pmPwd = pmPwd;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getTelnum() {
        return telnum;
    }

    public void setTelnum(String telnum) {
        this.telnum = telnum;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getPmCreatetime() {
        return pmCreatetime;
    }

    public void setPmCreatetime(Date pmCreatetime) {
        this.pmCreatetime = pmCreatetime;
    }

    public Date getPmLastlogin() {
        return pmLastlogin;
    }

    public void setPmLastlogin(Date pmLastlogin) {
        this.pmLastlogin = pmLastlogin;
    }

    public String getPmArea() {
        return pmArea;
    }

    public void setPmArea(String pmArea) {
        this.pmArea = pmArea;
    }

    public String getPmIcon() {
        return pmIcon;
    }

    public void setPmIcon(String pmIcon) {
        this.pmIcon = pmIcon;
    }

    public String getPmStatus() {
        return pmStatus;
    }

    public void setPmStatus(String pmStatus) {
        this.pmStatus = pmStatus;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PsManager other = (PsManager) that;
        return (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getPmUn() == null ? other.getPmUn() == null : this.getPmUn().equals(other.getPmUn()))
            && (this.getPmPwd() == null ? other.getPmPwd() == null : this.getPmPwd().equals(other.getPmPwd()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getTelnum() == null ? other.getTelnum() == null : this.getTelnum().equals(other.getTelnum()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getPmCreatetime() == null ? other.getPmCreatetime() == null : this.getPmCreatetime().equals(other.getPmCreatetime()))
            && (this.getPmLastlogin() == null ? other.getPmLastlogin() == null : this.getPmLastlogin().equals(other.getPmLastlogin()))
            && (this.getPmArea() == null ? other.getPmArea() == null : this.getPmArea().equals(other.getPmArea()))
            && (this.getPmIcon() == null ? other.getPmIcon() == null : this.getPmIcon().equals(other.getPmIcon()))
            && (this.getPmStatus() == null ? other.getPmStatus() == null : this.getPmStatus().equals(other.getPmStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getPmUn() == null) ? 0 : getPmUn().hashCode());
        result = prime * result + ((getPmPwd() == null) ? 0 : getPmPwd().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getTelnum() == null) ? 0 : getTelnum().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getPmCreatetime() == null) ? 0 : getPmCreatetime().hashCode());
        result = prime * result + ((getPmLastlogin() == null) ? 0 : getPmLastlogin().hashCode());
        result = prime * result + ((getPmArea() == null) ? 0 : getPmArea().hashCode());
        result = prime * result + ((getPmIcon() == null) ? 0 : getPmIcon().hashCode());
        result = prime * result + ((getPmStatus() == null) ? 0 : getPmStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", pid=").append(pid);
        sb.append(", pmUn=").append(pmUn);
        sb.append(", pmPwd=").append(pmPwd);
        sb.append(", sex=").append(sex);
        sb.append(", telnum=").append(telnum);
        sb.append(", email=").append(email);
        sb.append(", pmCreatetime=").append(pmCreatetime);
        sb.append(", pmLastlogin=").append(pmLastlogin);
        sb.append(", pmArea=").append(pmArea);
        sb.append(", pmIcon=").append(pmIcon);
        sb.append(", pmStatus=").append(pmStatus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}